#include "SMPPDestAddrNpInformation.hpp"

using namespace smpp::pdu;

DestAddrNpInformation::DestAddrNpInformation(const octetString &nValue):
TLV(TLVtags::TAG_DEST_ADDR_NP_INFORMATION,nValue.size()),_Value(nValue){}

DestAddrNpInformation::DestAddrNpInformation(
const DestAddrNpInformation &nDestAddrNpInformation):
TLV(nDestAddrNpInformation),_Value(nDestAddrNpInformation.getValue()){}

bool DestAddrNpInformation::operator ==(
	const DestAddrNpInformation &nDestAddrNpInformation) const{
	return (TLV::operator == (nDestAddrNpInformation) && 
			_Value == nDestAddrNpInformation.getValue());
}

bool DestAddrNpInformation::operator !=(
	const DestAddrNpInformation &nDestAddrNpInformation) const{
	return !this->operator == (nDestAddrNpInformation);
}

DestAddrNpInformation &DestAddrNpInformation::operator = (
	const DestAddrNpInformation &nDestAddrNpInformation){
	if(*this == nDestAddrNpInformation)
		return *this;
	TLV::operator = (nDestAddrNpInformation);
	_Value = nDestAddrNpInformation.getValue();
	return *this;
}

void DestAddrNpInformation::setValue(const octetString &nValue){
	_Value = nValue;
}

const octetString &DestAddrNpInformation::getValue() const{
	return _Value;
}
